Ext.define('Emp.model.Dictionary', {
	extend: 'Ext.data.Model',
	
	idProperty: 'id',
	fields: [
		{name: 'id', type: 'int'},
		{name: 'dictId', type: 'int'},
		{name: 'display', type: 'string'},
		{name: 'value', type: 'string'},
		{name: 'status', type: 'string'},
		{name: 'sort', type: 'int'}
	],
	
	validations: [
        {type: 'length', field: 'display', min: 1},
        {type: 'length', field: 'value', min: 1}
    ]
});